package com.zzy.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzy.dao.UserDao;
import com.zzy.model.User;
import com.zzy.service.UserService;


@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	UserDao  userDao;
	

	@Override
	public User login(String username, String password) {
		Map<String,Object> mapParam=new HashMap<String,Object>();
		
		mapParam.put("username", username);
		mapParam.put("password", password);
		
		User user=userDao.getBy(mapParam);
		return user;
		
	}

}
